package com.cssy.xxkj.logic.dao;

import java.util.List;
import java.util.Map;

import com.cssy.xxkj.basic.dao.BasicBizDAO;
import com.cssy.xxkj.logic.entity.LogicWarehouseOtherinItemDO;

/**
 * 数据访问对象接口
 * @since 2014-09-17
 */
public interface LogicWarehouseOtherinItemDAO  extends BasicBizDAO<LogicWarehouseOtherinItemDO>{

    /**
     * 插入数据
     * @param logicWarehouseOtherinItemDO
     * @return 插入数据的主键
     */
    public String insertLogicWarehouseOtherinItemDO(LogicWarehouseOtherinItemDO logicWarehouseOtherinItemDO);

    /**
     * 统计记录数
     * @param logicWarehouseOtherinItemDO
     * @return 查出的记录数
     */
    public Integer countLogicWarehouseOtherinItemDOByExample(LogicWarehouseOtherinItemDO logicWarehouseOtherinItemDO);

    /**
     * 更新记录
     * @param logicWarehouseOtherinItemDO
     * @return 受影响的行数
     */
    public Integer updateLogicWarehouseOtherinItemDO(LogicWarehouseOtherinItemDO logicWarehouseOtherinItemDO);

    /**
     * 获取对象列表
     * @param logicWarehouseOtherinItemDO
     * @return 对象列表
     */
    public List<LogicWarehouseOtherinItemDO> findListByExample(LogicWarehouseOtherinItemDO logicWarehouseOtherinItemDO);
    
    public List<LogicWarehouseOtherinItemDO> findListByMap(Map<String, Object> paramMap);

    /**
     * 根据主键获取logicWarehouseOtherinItemDO
     * @param id
     * @return logicWarehouseOtherinItemDO
     */
    public LogicWarehouseOtherinItemDO findLogicWarehouseOtherinItemDOByPrimaryKey(String id);

    /**
     * 删除记录
     * @param id
     * @return 受影响的行数
     */
    public Integer deleteLogicWarehouseOtherinItemDOByPrimaryKey(String id);
    
    /**
     * 根据主表ID查询Item
     * @param pid
     * @return
     */
    public List<LogicWarehouseOtherinItemDO> findByPid(String pid);
    
    /**
     * 根据主表ID删除Item记录
     * @param id
     * @return 受影响的行数
     */
    public Integer deleteByPid(String id);

}